package com.matt.domain.simpleCookbook;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "tb_simple_cookbook")
@Data
@EqualsAndHashCode(callSuper = true)
public class SimpleCookbook extends Domain {

	@Column(name = "aid", columnDefinition = " varchar(32)  COMMENT ' 园区id'", nullable = false)
	private String areaId;

	@Column(name = "staffId", columnDefinition = " varchar(32)  COMMENT '老师id'", nullable = false)
	private String staffId;

	@Column(columnDefinition = "varchar(2048) COMMENT '图片地址'", nullable = false)
	private String resURL;

	@Column(columnDefinition = "varchar(128) COMMENT '文章标题'", nullable = false)
	private String title;

	@Column(columnDefinition = " datetime DEFAULT NOW() COMMENT '开始时间' ")
	private Date beginAt = new Date();

	@Column(columnDefinition = " datetime DEFAULT NOW() COMMENT '创建时间' ")
	private Date endAt = new Date();

	@Column(columnDefinition = "varchar(512) COMMENT '文章标题'")
	private String description;

}
